package com.itheima.chapter10.blockQueue;

import java.util.concurrent.ArrayBlockingQueue;

public class Case {
    public static void main(String[] args) {
        ArrayBlockingQueue<String> abq =new ArrayBlockingQueue<>(1);
        Consumer c =new Consumer(abq);
        Producer p=new Producer(abq);
        c.start();
        p.start();
    }
}
